// 登录模块接口
import request from '@/utils/request'
// 登录后获取用户信息接口
export const getClientList = (params = null) => {
  return request({
    url: '/clients',
    method: 'get',
    params
  })
}
export const addClient = (data) => {
  return request({
    url: '/clients',
    method: 'post',
    data
  })
}
export const editClient = (id, data) => {
  return request({
    url: '/clients/' + id,
    method: 'put',
    data
  })
}
export const getClientInfoById = (id) => {
  return request({
    url: '/clients/' + id
  })
}
export const delClientById = (id) => {
  return request({
    url: '/clients/' + id,
    method: 'delete'
  })
}
export const getClientCount = (params = null) => {
  return request({
    url: '/clients/count',
    method: 'get',
    params
  })
}

